package com.wuyb.pojo.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 页码参数
 *
 * @Author: wyb
 * @Date: 2024/01/03/16:55
 * @Description:
 */
@ApiModel(description = "分页类实体")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageParam {

    @ApiModelProperty(value = "当前页码",required = true)
    @NotNull(message = "页码不能为空")
    private Integer current;

    @ApiModelProperty(value = "页面大小",required = true)
    @NotNull(message = "页面大小不能为空")
    private Integer size;
}
